package com.zhang.damo1;

public class Damo3 {
    public int sum;
    public static int sum1;

    public Damo3() {
    }

    public Damo3(int sum) {
        this.sum = sum;
    }
    public static void mathod1(){
        System.out.println("这是一个静态方法");
    }
    public void mathod2(){
        System.out.println("这是一个非静态方法");
    }
    public static void mathod3(){
        System.out.println(sum1);
        //System.out.println(sum);报错
        mathod1();
        //mathod2();报错
    }
}
